﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CusSatiSur/CusSatSurMaster.Master" AutoEventWireup="true" CodeBehind="CusSatiSurCloseCirle.aspx.cs" Inherits="QuaManSys.CusSatiSur.CusSatiSurCloseCirle" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script language="javascript" type="text/javascript" src="../Calendar/WdatePicker.js"></script>
        <script language="javascript" type="text/javascript" src="../js/upload.js"></script>
        <script language="javascript" type="text/javascript" src="../js/pagePrint.js"></script>
        <link rel="Stylesheet" href="../Css/QuaInfoPro.css" type="text/Css" />
        <script type="text/javascript">

            function confirmLast() {
                var classs = document.getElementById("<%=tbxInfoClass.ClientID %>").value;
                var register = document.getElementById("<%=tbxRegistor.ClientID %>").value;
                var depart = document.getElementById("<%=tbxDeptment.ClientID %>").value;
                var registDate = document.getElementById("<%=tbxRegistDate.ClientID %>").value;
                if ( classs == null || classs == "" ||
                 register == null || register == "" || 
                 depart == null || depart == "" ||
                 registDate == null || registDate == "") { alert("请确定登记信息已填写"); return false; }
                return confirm("你确定要提交？");

            }

            function clickSubmit() {
                var prot = document.getElementById("<%=tbxVisitDate.ClientID %>").value;
                var expDate = document.getElementById("<%=tbxExpectTime.ClientID %>").value;
                var visit = document.getElementById("<%=tbxVisitedDate.ClientID %>").value;
                if (prot == null || prot == "") { alert("请输入访问日期"); return false; }
                if (expDate == null || expDate == "") { alert("请输入反馈日期"); return false; }
                if (visit == null || visit == "") { alert("请输入受访日期"); return false; }
                return true;
            }

            function check() {
                var prot = document.getElementById("<%=tbxProcessDept.ClientID %>").value;
                var processor = document.getElementById("<%=tbxProcessor.ClientID %>").value;
                var advice = document.getElementById("<%=tbxAdvice.ClientID %>").value; 
                var processDate = document.getElementById("<%=tbxProcessDate.ClientID %>").value;
                if (prot == null || prot == "") { alert("请输入处理部门"); return false; }
                if (processor == null || processor == "") { alert("请输入处理人"); return false; }
                if (advice == null || advice == "") { alert("请输入反馈意见"); return false; }
                if (processDate == null || processDate == "") { alert("请输入处理时间"); return false; }
                return true;
            }
        </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphInner" runat="server">

<asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">

        <asp:View ID="CloseA" runat="server"><!--startprint-->
        <div>
    <label>客户满意度调查表针对的客户类型</label>
    <asp:Label ID="lblClass" runat="server" Text="Label"></asp:Label>
</div>
        <div>
        <div>
 <table class="table_1">
        <tr><th colspan="4"><font size="5">客户满意度调查表</font> <label class="small">编号：</label><asp:Label ID="lblInfomationId" class="small" runat="server" Text=""></asp:Label></th></tr>
        <tr> 
            <td><label>顾客名称：</label></td><td><asp:TextBox ID="tbxCustomName" runat="server"></asp:TextBox></td>
            <td><label>部门：</label></td><td><asp:TextBox ID="tbxDepartment" runat="server"></asp:TextBox></td>
        </tr>
   
        <tr> 
            <td><label>访问日期：</label></td><td><asp:TextBox ID="tbxVisitDate" runat="server" cssclass="Wdate" onClick="WdatePicker()" ></asp:TextBox></td>
            <td> <label>受访形式：</label> </td><td>
            
                <asp:RadioButton ID="rbtInterview" Checked="true" GroupName="visitedForm" Text="走访" runat="server" />  <asp:RadioButton ID="rbtFax" Text="传真" GroupName="visitedForm" runat="server" />
            </td>
        </tr>
        
        <tr><td colspan="4"><label>该顾客满意度调查表希望您能于</label> <asp:TextBox ID="tbxExpectTime" runat="server" style="display:inline;width:20%;" cssclass="Wdate" onClick="WdatePicker()" ></asp:TextBox> <label>  前反馈至我司。</label></td></tr>
       
        <tr> 
            <td><label>联系人：</label></td><td><asp:TextBox ID="tbxContactMan" runat="server"></asp:TextBox></td>
            <td><label>联系方式：</label></td><td><asp:TextBox ID="tbxContactNum" runat="server"></asp:TextBox></td>
        </tr>
   
        <tr>
            <td colspan="4"><label>尊敬的顾客，您好，为提高我司的服务和产品质量，满足顾客需求，请您百忙之中拨冗填写该表，期盼您宝贵的意见和建议。在项目前的“□”内标识“√”选择</label>  </td>
        </tr>

        
    </table>

</div>
</div>
    <div>
  <div>
    <table class="table_2">
            <tr><td><label>项目</label></td><td><label>满意度</label></td></tr>
            <tr>
                <td><label>产品交货期</label> </td>
                <td>
                    <asp:RadioButton ID="Jhenmanyi" Checked="true" GroupName="satJiaohuoqi" Text="很满意" runat="server" />
                    <asp:RadioButton ID="Jmanyi" GroupName="satJiaohuoqi" Text="满意" runat="server" />
                    <asp:RadioButton ID="Jyiban" GroupName="satJiaohuoqi" Text="一般" runat="server" />
                    <asp:RadioButton ID="Jbumanyi" GroupName="satJiaohuoqi" Text="不满意" runat="server" />
                </td>         
            </tr>

            <tr>
                <td><label>产品完整性</label> </td>
                <td>
                    <asp:RadioButton ID="Whenmanyi" Checked="true" GroupName="satWanzheng" Text="很满意" runat="server" />
                    <asp:RadioButton ID="Wmanyi" GroupName="satWanzheng" Text="满意" runat="server" />
                    <asp:RadioButton ID="Wyiban" GroupName="satWanzheng" Text="一般" runat="server" />
                    <asp:RadioButton ID="Wbumanyi" GroupName="satWanzheng" Text="不满意" runat="server" />
                </td>
            </tr>

            <tr>
                <td><label>配合船厂交货期计划调整</label> </td>
                <td>
                    <asp:RadioButton ID="Thenmanyi" Checked="true" GroupName="satJiaohuojihua" Text="很满意" runat="server" />
                    <asp:RadioButton ID="Tmanyi" GroupName="satJiaohuojihua" Text="满意" runat="server" />
                    <asp:RadioButton ID="Tyiban" GroupName="satJiaohuojihua" Text="一般" runat="server" />
                    <asp:RadioButton ID="Tbumanyi" GroupName="satJiaohuojihua" Text="不满意" runat="server" />
                </td>
            </tr>

            <tr>
                <td><label>我司电话、传真、E-mail等通讯畅通状况</label> </td>
                <td>
                    <asp:RadioButton ID="TXhenmanyi" Checked="true" GroupName="satTongxin" Text="很满意" runat="server" />
                    <asp:RadioButton ID="TXmanyi" GroupName="satTongxin" Text="满意" runat="server" />
                    <asp:RadioButton ID="TXyiban" GroupName="satTongxin" Text="一般" runat="server" />
                    <asp:RadioButton ID="TXbumanyi" GroupName="satTongxin" Text="不满意" runat="server" />
                </td>
            </tr>

            <tr>
                <td><label>顾客信息、意见、抱怨处理速度</label> </td>
                <td>
                    <asp:RadioButton ID="Chenmanyi" Checked="true" GroupName="satChulisudu" Text="很满意" runat="server" />
                    <asp:RadioButton ID="Cmanyi" GroupName="satChulisudu" Text="满意" runat="server" />
                    <asp:RadioButton ID="Cyiban" GroupName="satChulisudu" Text="一般" runat="server" />
                    <asp:RadioButton ID="Cbumanyi" GroupName="satChulisudu" Text="不满意" runat="server" />
                </td>
            </tr>

            <tr>
                <td><label>对处理结果的满意度</label> </td>
                <td>
                    <asp:RadioButton ID="JGhenmanyi" Checked="true" GroupName="satJieguomanyi" Text="很满意" runat="server" />
                    <asp:RadioButton ID="JGmanyi" GroupName="satJieguomanyi" Text="满意" runat="server" />
                    <asp:RadioButton ID="JGyiban" GroupName="satJieguomanyi" Text="一般" runat="server" />
                    <asp:RadioButton ID="JGbumanyi" GroupName="satJieguomanyi" Text="不满意" runat="server" />
                </td>
            </tr>

            <tr>
                <td colspan="2"><label>对上述项目不满意的说明或事例，以便我司有针对性的改进</label></td>
            </tr>
            <tr>
                <td colspan="2"><textarea id="txaInstruction" rows="3"  cols="70" style="margin:0;padding:0" runat="server"></textarea></td>
            </tr>

             <tr>
                <td colspan="2"><label>我司需要改进的地方</label></td>
            </tr>
            <tr>
                <td colspan="2"><textarea id="txaToBeImproved" rows="3" cols="70" style="margin:0;padding:0;border:none" runat="server"></textarea></td>
            </tr>

            <tr>
                <td colspan="2"><label>我司做得较好、需保持的方面</label></td>
            </tr>
            <tr>
                <td colspan="2"><textarea id="txaOurAdvantage" rows="3" cols="70" style="margin:0;padding:0;border:none" runat="server"></textarea></td>
            </tr>

            <tr>
                <td colspan="2"><label>对我司的发展，您的意见和建议</label></td>
            </tr>
            <tr>
                <td colspan="2"><textarea id="txaSuggestion" rows="3" cols="70" style="margin:0;padding:0;border:none" runat="server"></textarea></td>
            </tr>
        </table>
        <table border="0" cellspacing="0" cellpadding="0" width="100%">
            <tr>
                <td><label>受访顾客签名（签章）:</label></td>
                <td><asp:TextBox ID="tbxVisitedCustmer" style="display:inline;" runat="server"></asp:TextBox></td>
                <td><label>日期：</label></td>
                <td><asp:TextBox ID="tbxVisitedDate" runat="server" style="display:inline;" cssclass="Wdate" onClick="WdatePicker()" ></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2"> <label>受访顾客联系方式：</label></td>
                <td colspan="2"><asp:TextBox ID="tbxCustomTele" style="display:inline;" runat="server"></asp:TextBox></td>
            </tr>
    </table>
 </div>
<!--endprint-->
    <div>
     <asp:Repeater ID="attatch" runat="server" OnItemCommand="OnItemCommand">
    <HeaderTemplate> <table class="table_1"></HeaderTemplate>
        <ItemTemplate>
        <tr>
            <td><asp:Label id="attatchName" CssClass="attach" ReadOnly="true" Text='<%#DataBinder.Eval(Container.DataItem, "Name") %>' runat="server"></asp:Label></td>
            <td><asp:Button id="d1" Text="删除" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="delete" OnClientClick="return confirm('确定要删除？');"/></td>
            <td><asp:Button id="d2" Text="下载" runat="server" CommandArgument='<%#DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="download"/></td>
        </tr>
           
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    </div>

        <table cellpadding="2" cellspacing="1" class="table_2">
            <tr>
                <td class="noline">                                     
                    <input id="Button_D1" onclick="return additem('TABLE_D')" type="button" style="width:120px"
                                                            value="继续添加附件" />           
                </td>
            </tr>
        </table>
      
        <input type="hidden" id="hidden" runat="server" value="1"/>
        <table width="100%" id="TABLE_D" class="table_2">

            <tr>
                <td>
                    
                    <input id="FileUploadD1" type="file" size="40" cssclass="a_search" runat="server" />
                 
                 </td> 
                  <td> 
                    <input onclick="return deleteitem(this);" type="button" value="删除" style="width:120px"/>
                                                    
                </td>
            </tr>
        </table>
        <div style="text-align:center; background-color:#ffffff; margin:20px;">
            <asp:Button ID="nextPage" runat="server"   BackColor="#1a5ab8"  
                Font-Bold="False" Font-Size="Medium" Height="23px" Width="100px" 
                ForeColor="White" Text="下一页=>>" onclick="nextPage_Click"  OnClientClick="return clickSubmit()" />
        </div>
        
        </div>
        </asp:View>
        <asp:View ID="CloseB" runat="server">
        
            <div>
<!--startprint-->
<table class="table_1">
    <tr><th colspan="6"><font size="5">事务处理表</font></th></tr>
    <tr>
        <td><label>信息分类</label></td>
        <td colspan="5"><asp:TextBox ID="tbxInfoClass" runat="server"></asp:TextBox></td>

    </tr>
    <tr>
        <td><label>登记人：</label></td> 
        <td><asp:TextBox ID="tbxRegistor" runat="server"></asp:TextBox></td>
        <td><label>部门：</label></td>
        <td>  <asp:TextBox ID="tbxDeptment" runat="server"></asp:TextBox></td> 
        <td><label>登记日期：</label></td>
        <td><asp:TextBox ID="tbxRegistDate" runat="server" cssclass="Wdate" onClick="WdatePicker()"></asp:TextBox></td>
    </tr>
    <tr>
        <td colspan="6" style="background-color:Silver"><label>处理信息</label></td>
    </tr>
    <tr>
        <td><label>处理部门</label></td>
        <td><label>处理人</label></td>
        <td colspan="3"><label>处理意见</label></td>
        <td><label>处理时间</label></td>
    </tr>        
    </table>        
<table class="table_2">
  <asp:Repeater ID="rptrProcess" runat="server" DataSourceID="CusSatSurProc">

  <ItemTemplate>
  <tr>
        <td> <asp:Label ID="lbl1" runat="server"  Text='<%#Eval("processDept") %>'></asp:Label></td>
        <td>
            <asp:Label ID="lbl2" runat="server"  Text='<%#Eval("processName") %>' ></asp:Label></td>
        <td colspan="3">
            <asp:Label ID="lbl3" CssClass="attach" runat="server"  Text='<%#Eval("processAdvice") %>'></asp:Label></td>
        <td>
            <asp:Label ID="lbl4" runat="server"  Text='<%#Eval("processTime", "{0:yyyy/MM/dd}") %>'></asp:Label></td>
    </tr>

  </ItemTemplate>           
      <FooterTemplate>
      
      </FooterTemplate>

 </asp:Repeater>   
     <tr>
        <td> <asp:TextBox ID="tbxProcessDept" runat="server" ></asp:TextBox></td>
        <td>
            <asp:TextBox ID="tbxProcessor" runat="server"  ></asp:TextBox></td>
        <td colspan="3">
            <asp:TextBox ID="tbxAdvice" CssClass="attach" runat="server" ></asp:TextBox></td>
        <td>
            <asp:TextBox ID="tbxProcessDate" runat="server" cssclass="Wdate" onClick="WdatePicker()"></asp:TextBox></td>
    </tr>
    <tr><td colspan="6" align="right">
        <asp:Button ID="Button1" runat="server" Text="添加处理记录" onclick="Button1_Click" OnClientClick="return check()"/></td></tr>
    </table>
    <asp:EntityDataSource ID="CusSatSurProc" runat="server" ConnectionString="name=QuaManSysEntities"
				DefaultContainerName="QuaManSysEntities" EnableFlattening="False" EntitySetName="CusSatSurProcess"
				Select="it.[processDept], it.[processName], it.[processAdvice], it.[processTime]"
				Where="it.[infomationId]=@infomationId">
				<WhereParameters>
					<asp:ControlParameter ControlID="lblInfomationId" Name="infomationId" Type="String" />
				</WhereParameters>
			</asp:EntityDataSource>
            <!--endprint-->
<div style="text-align:center; background-color:#ffffff; margin:20px;">
          <asp:Button ID="prePage" runat="server"  BackColor="#1a5ab8"  
                Font-Bold="False" Font-Size="Medium" Height="23px" Width="100px" 
                ForeColor="White" Text="<<=上一页" onclick="prePage_Click" />

 <asp:Button ID="rtnRollback" runat="server" Text="回退"  BackColor="#1a5ab8"  
                Font-Bold="False" Font-Size="Medium" Height="23px" Width="100px" 
                ForeColor="White"
                OnClientClick="return confirm('你确定要回退？')" onclick="rtnRollback_Click"/>
            <asp:Button ID="submit" runat="server" Text="确认闭环" OnClientClick="return confirmLast()"
                 BackColor="#1a5ab8"  
                Font-Bold="False" Font-Size="Medium" Height="23px" Width="100px" 
                ForeColor="White" onclick="submit_Click"/>
        </div>

</div>
           
        </asp:View>
        </asp:MultiView>
        
</asp:Content>
